clc
close all
clear

x=[0,10,20,30,40];
y=[0,10,20,30,40];
t=linspace(0,1,length(x));

tau=[0,t,1];

sp=spapi(3,tau,[10,x,10;10,y,10]);

trajektorie=ppval(sp,linspace(0,1,5E2));

plot(trajektorie(1,:),trajektorie(2,:));
grid on
